package xyz.bali16.module.article.model.like;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import xyz.bali16.application.model.PageParam;

import javax.validation.constraints.NotNull;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("点赞分页查询参数")
public class LikePageParam extends PageParam {

    @ApiModelProperty(name = "targetId", value = "点赞目标id", required = false)
    @NotNull(message = "帖子id不能为空")
    private String targetId;

    @ApiModelProperty(name = "userId", value = "用户名字", required = false)
    @NotNull(message = "用户id不能为空")
    private String userId;
}
